// function ModelCreator(Model) {
//   class ModelExtend extends Model {
//     constructor(...args) {
//       super(...args)
//     }
//   }

//   return ModelExtend
// }

const metadata = {
  product_id: {
    // product_id (company_id and
    // ['|', ('company_id', '=', False), ('company_id', 'in', [company_id])]
    // or [('company_id', '=', False)]) +
    // ([] if not context.get('inventory_mode')
    // else [('type', '=', 'product'),
    // ('product_tmpl_id', 'in', context.get('product_tmpl_ids', [])
    // + [context.get('product_tmpl_id', 0)])] if context.get('product_tmpl_ids')
    //  or context.get('product_tmpl_id') else [('type', '=', 'product')])
    domain: []
  },
  location_id: {
    // location_id (company_id and
    // ['|', ('company_id', '=', False), ('company_id', 'in', [company_id])]
    // or [('company_id', '=', False)])
    // + ([('usage', 'in', ['internal', 'transit'])]
    // if context.get('inventory_mode') else [])
    domain: []
  },

  lot_id: {
    // lot_id (company_id and
    // ['|', ('company_id', '=', False), ('company_id', 'in', [company_id])]
    // or [('company_id', '=', False)])
    // + ([] if not context.get('inventory_mode')
    // else [('product_id', '=', context.get('active_id', False))]
    // if context.get('active_model') == 'product.product'
    // else [('product_id.product_tmpl_id', '=', context.get('active_id', False))] if context.get('active_model') == 'product.template' else [('product_id', '=', product_id)])
    domain: []
  },

  package_id: {
    // package_id (company_id and
    // ['|', ('company_id', '=', False), ('company_id', 'in', [company_id])]
    // or [('company_id', '=', False)]) + ([('location_id', '=', location_id)])
    domain: []
  },

  owner_id: {
    // owner_id (company_id and
    // ['|', ('company_id', '=', False), ('company_id', 'in', [company_id])]
    // or [('company_id', '=', False)]) + ([])
    domain: []
  }
}

const AddonsModels = {
  'stock.quant': {
    // ModelCreator,
    metadata
  }
}

export default AddonsModels
